using System;

namespace Catastrophe.Common.Redis
{
	public class RedisCacheAttribute : Attribute
	{
		public RedisDataTypeEnum DataType { get; set; }

		public string KeyName { get; set; }

		public string FiledName { get; set; }

		public int ExpiryMillionSeconds { get; set; }

		public int Index { get; set; }

		public RedisCacheAttribute(RedisDataTypeEnum dataType, string key = null, string filedName = null, int expiry = -1)
		{
			this.DataType = dataType;
			this.KeyName = key;
			this.FiledName = filedName;
			this.ExpiryMillionSeconds = expiry;
		}
	}
}
